import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/article/list',
    method: 'get',
    params: query
  })
}

export function updateArticleByElas(query) {
  return request({
    url: '/article/updateArticleByElas',
    method: 'post',
    data: query
  })
}

export function deleteArticleById(query) {
  return request({
    url: '/article/delete',
    method: 'post',
    params: query
  })
}

export function deleteBath(query) {
  return request({
    url: '/article/deleteBath',
    method: 'post',
    params: query
  })
}

export function dataSync(query) {
  return request({
    url: '/article/sync',
    method: 'post',
    params: query
  })
}

export function articleDetailPost(query) {
  return request({
    url: '/article/detail',
    method: 'post',
    params: query
  })
}

export function resetArticle(query) {
  return request({
    url: '/article/reset',
    method: 'post',
    params: query
  })
}

export function changeArticleImgs(query) {
  return request({
    url: '/article/changeArticleImgs',
    method: 'post',
    params: query
  })
}



